package com.be.beadmin.service.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.Date;

@Entity
@Getter
@Setter
@Table(name="T_FACTORY_CALENDAR_ITEM")
public class FactoryCalendarItem extends BaseEntity {
    @Column(name = "Date",columnDefinition = "datetime COMMENT '休息时间' ")
    private Date date;

    @Column(name = "DayOff",columnDefinition = "bit COMMENT '是否休息' ")
    private Boolean dayOff;

    @Column(name = "CalenderMemo",columnDefinition = "VARCHAR(20) COMMENT '备注信息' ")
    private String calenderMemo;

    @ManyToOne(fetch = FetchType.LAZY,cascade = CascadeType.ALL)
    @JoinColumn(name = "FACTORY_CALENDAR_ID",columnDefinition = "VARCHAR(45) COMMENT '工厂日历主表' ")
    private FactoryCalendar factoryCalendar;



}
